package cn.fanqinghong.ymcc.feignClient;

import cn.fanqinghong.ymcc.domain.MessageStation;
import cn.fanqinghong.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * FAN
 * 2022/7/25  13:58
 */
@FeignClient(value = "service-common",fallbackFactory = MessageStationFallbackFactory.class,contextId = "MessageStationAPI")
@RequestMapping("/messageStation")
public interface MessageStationFeignClient {

    /**
     * 批量保存
     */
    @RequestMapping(value="/saveBatch",method= RequestMethod.POST)
    public JSONResult saveBatch(@RequestBody List<MessageStation> messageStations);
}
